# 计算模块
class calculate:
    def __init__(self):
        pass

    # 计算平均气温
    @staticmethod
    def getTheAverageTemperatureForTheDay(td):
        min_temp = float(td[1].replace('°', ''))
        max_temp = float(td[2].replace('°', ''))
        return round((min_temp + max_temp) / 2, 1)  # 返回改日的平均气温
